package Day5.ZuoYe;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

//3：输出今年的国庆节（10.1）是周几
public class ZuoYe3 {
    public static void main(String[] args) {
        Date date = new Date(122, 9, 1);
        SimpleDateFormat sim = new SimpleDateFormat("EEEE");
        String s1 = sim.format(date);
        System.out.println("今年的国庆节（10.1）是" + s1);
        Calendar c = Calendar.getInstance();
        c.set(2022, 9, 1);
        Date d = c.getTime();
        String s = sim.format(d);
        System.out.println("今年的国庆节（10.1）是" + s);
    }
}
